import React, { Component } from 'react';

class Login extends Component {

  fullname(firstname, lastname) {
    return firstname + lastname;
  }

  render() {
    let islogin = sessionStorage.getItem('username')
    if (islogin) {
      let username = sessionStorage.getItem('username');
      return (
        <div>
          {1 + 2 + 3}
          <hr/>
         欢迎， {username}
         <hr/>
         {
           this.fullname('han','ye')
         }
        </div>
      );
    } else {
      return <h1>您还没有登录</h1>
    }

  }
}

export default Login;